package io.renren.modules.live.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.live.entity.FanweUserTokenEntity;

import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-17 10:20:22
 */
public interface FanweUserTokenService extends IService<FanweUserTokenEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 生成token
     * @param userId  用户ID
     */
    R createToken(Long userId);

    /**
     * 退出，修改token值
     * @param userId  用户ID
     */
    void logout(Long userId);
}

